home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 013 / sst20.arc / SST.DOC < prev   
Encoding:
Text File  |  1986-06-18  |  9.2 KB  |  214 lines

  1.  
  2.        SST - THE SEEK STOPPER
  3.        Copyright 1986
  4.        Alfred J. Heyman
  5.  
  6.        Version 2.00
  7.  
  8.        Feel  free to copy and share SST with others so long as it
  9.        is  distributed in its unmodified form and as long  as  no
  10.        disk  copy  or  duplication fee is  charged.   The  Author
  11.        reserves the sole right to distribute SST for profit.
  12.  
  13.        If  you  find SST to be useful,  And/Or would like  to  be
  14.        notified  about getting possible future SST  enhancements,
  15.        you can become a registered SST user by Sending $10 to the
  16.        Author at the Address below.
  17.  
  18.        Alfred J. Heyman
  19.        Room 101
  20.        P.O. Box 172101
  21.        Memphis, TN
  22.        38187
  23.  
  24.        SST  may  not be used in a commercial environment  without
  25.        the  above  mentioned   registration.     Source  code  is
  26.        available.
  27.        ----------------------------------------------------------
  28.        WHAT IS SST?
  29.  
  30.        SST is a program that is designed to reorganize a DOS disk 
  31.        so that it will run "Faster".   Normal daily use of a disk
  32.        will  produce  a  disk  with  many  fragmented  files  and 
  33.        subdirectories.   Simply put, these are files that are not 
  34.        completely contiguous or together,  but are spread out all 
  35.        over the disk.   These fragmented files and subdirectories 
  36.        slow disk access down because DOS must tell the Disk  Head 
  37.        to  Seek to other parts of the disk to pick up other parts 
  38.        of the same file.  For example, your disk might have three 
  39.        files on it that we will call A,B,and C.   Different parts 
  40.        might be arranged as follows....
  41.  
  42.        AAAAAAABBBBBBBBAAAC CCAAABBBB     CCC 
  43.  
  44.        SST  would reorganize the three files so that all of their 
  45.        parts would be contiguous....
  46.  
  47.        AAAAAAAAAAAAABBBBBBBBBBBBCCCCCC
  48.  
  49.        This change would shorten the amount of time that it takes 
  50.        DOS to read in the file.  If a subdirectory is fragmented,
  51.        fixing  it  will  speed  up disk  access  time  even  more 
  52.        noticeably!
  53.        __________________________________________________________  
  54.  
  55.        
  56.        
  57.        Syntax: SST [d:] [ TEST] [ CLEAR]
  58.  
  59.        TEST   - will  run  SST in  a  READ-ONLY  mode.   No 
  60.                 alterations will be made to the disk.
  61.        CLEAR  - will  Clear  move  all  erased  entries  in   all 
  62.                 directories to the ends of those directories.
  63.  
  64.        __________________________________________________________
  65.  
  66.        SO WHATS SO GREAT ABOUT SST?
  67.  
  68.        The main difference between SST and other Disk  Optimizing 
  69.        programs is the way that SST achieves the end result.  SST 
  70.        was designed to be FAST.   SST is also NOT  copy-protected 
  71.        and never will be.  
  72.        
  73.        SST  reads in all of the data that it will need during the
  74.        run   session  and  Keeps  this  information  in   memory.  
  75.        Specifically,  SST uses DOS Interrupts 25h and 26h to look 
  76.        at   the  boot  track  and  other  parts  of   the   disk.  
  77.        Information  about  the disks' characteristics are  stored
  78.        there.   SST makes a quick comparison of the data it  gets 
  79.        here  with  what DOS thinks about the disk.  If these  two 
  80.        sets of data agree with each other,  SST will read in  the 
  81.        disks  File  Allocation  Table,  Root  Directory  and  All 
  82.        subdirectories.  ALL of this information is kept in memory 
  83.        during the SST session.  
  84.  
  85.        SST  then decides on the best way to reorganize the disk's 
  86.        clusters.  When this is finished,  the user is prompted (Y 
  87.        or N) to continue or not.  
  88.  
  89.        A  "Y" response to the above question will start the  File 
  90.        Cluster Swapping procedure.  Here, the actual file data is 
  91.        physically  moved.   All data is buffered IN MEMORY.  When 
  92.        SST  is  finished  SWAPPING,  it  then  updates  the  File 
  93.        Allocation table on the disk, and all directories.
  94.  
  95.        Some  disk optimization programs use the slower and  safer 
  96.        method  of  buffering file data to the disk.   While  this
  97.        practically eliminates the chances of data losses  because 
  98.        of accidents such as power failures,  it makes the program 
  99.        run incredibly slow on a nearly full disk.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.        
  111.        SST DISADVANTAGES: 
  112.  
  113.        WARNING:  It is strongly advised that the user back up his 
  114.        disk  before  using  SST.   Since SST  buffers  all  Data, 
  115.        Tables, and Directories to Memory, 
  116.  
  117.        IF  A  POWER FAILURE OCCURS WHILE CLUSTER SWAPPING  IS  IN         
  118.                  ACTION... ALL DATA WILL BE LOST.  
  119.  
  120.        The  Same thing goes for ANY interruption during the  SWAP 
  121.        procedure.  Simply LEAVE SST alone after pressing "Y" when 
  122.        prompted!
  123.  
  124.        SST  assumes  that  all disk sectors that are bad  are  so 
  125.        marked  in the File Allocation Table.  If you have a  Hard 
  126.        disk  that  causes  you  problems...   I.E.   it  develops 
  127.        unexpected  bad  Sectors regularly,  Don't use SST  on  it 
  128.        unless  you  have verified that the disk is currently  OK. 
  129.        One  way  of  doing this is with Peter  Norton's  DiskTest 
  130.        Program in his Norton Utilities Package.  (CopyRight Peter 
  131.        Norton).
  132.  
  133.        THE SST USER:
  134.  
  135.        SST is intended for Computer users who have the ability to 
  136.        quickly back up their disk and who don't have the time  to 
  137.        waste   for  a  simple  disk  optimization.   Other   disk 
  138.        optimizers  can  take many hours to work on  a  LARGE/FULL 
  139.        disk.   SST  can usually handle these more  quickly.   For 
  140.        Example,  SST has reorganized a 32 MEG Hard disk on an  AT 
  141.        compatible   in   under  30   minutes.   This   particular
  142.        Optimization  moved over 20 Meg of data.  Zero Bytes  were
  143.        free on the disk.
  144.  
  145.        SST LIMITATIONS:
  146.  
  147.        SST is  designed to  run only in a single user, non-multi-
  148.        tasking  system without  stay resident programs installed.
  149.        SST can perform an optimization on almost any standard DOS
  150.        disk up to 32 Megabytes in size as long as sectors are 512
  151.        bytes long.   However, it should be noted that SST needs a
  152.        lot of memory to work with Bigger disks.   If SST runs out
  153.        of memory,  a runtime error FF will halt the program. This
  154.        error  typically  occurs  while  SST  is  reading  in  the
  155.        Subdirectories and before anything is moved or changed  on
  156.        the  disk.   SST's Memory allocation routines will look to
  157.        see if enough memory is available when the "BIG BYTES" are
  158.        needed.  A lack of memory returns a message along with the
  159.        Runtime  Error  FF message.   The Smaller  Dynamic  Memory
  160.        allocations are not PreChecked.  These routines are called
  161.        many  times...  (Thousands of times on Hard disks) and  it
  162.        would  slow  things  up  a great deal to  do  a  bunch  of
  163.        calculations  every  time  that  16  bytes  were   needed,
  164.        especially  since  SST's  Library  Routines  AUTOMATICALLY
  165.        check  on  Stack/Heap  memory  availability  in  order  to
  166.        generate this Runtime Error.       
  167.  
  168.        If SST just can't quite make it to the SWAPPING  procedure
  169.        with the memory that you have,  you can do a few things to
  170.        try and get it to run.
  171.  
  172.        Simply  do a cold boot without any unneeded device drivers
  173.        like  ANSI.SYS  in the  system.  Temporarily  rename  your 
  174.        CONFIG.SYS  file to something else and boot up without any 
  175.        of the other DOS parameters that you may specify that  eat 
  176.        up memory (BUFFERS=##). SST does not use Dos' DISK buffers 
  177.        to move any disk cluster data. Don't run ANY Stay Resident 
  178.        programs  before  SST.  The extra 1 or 2K of  free  memory 
  179.        gained with these methods has proven to be enough before!
  180.         
  181.  
  182.        MEMORY USAGE SPELLED OUT: 
  183.  
  184.        SST uses 16 bytes of memory for every used cluster on  the 
  185.        disk.  This translates to 262k for a completely full 32Meg 
  186.        Hard  disk.   SST uses 32 bytes of memory for every active 
  187.        directory entry on the disk.  One thousand files would use 
  188.        up 32000 bytes of RAM.   SST will buffer out one  complete 
  189.        copy  of  the  File allocation Table.  This would  use  up
  190.        another  32K of ram on a 32Meg Hard  Drive.   The  program
  191.        also needs another 64k for dynamic variables when run on a
  192.        32Meg drive.....
  193.        As  you can see,  this all adds up very quickly.   If  you
  194.        plan  to run SST on a 32Meg drive,  you will need at LEAST
  195.        512K,  If  you  have  640K,  you should  not  have  memory
  196.        problems with SST and a 32 Meg Drive.
  197.  
  198.        For smaller drives such as 20 Meg and 10 Meg,  The  memory
  199.        requirements are much lower.
  200.  
  201.        __________________________________________________________
  202.  
  203.                           * DISCLAIMER *
  204.  
  205.        The  author  makes no claims or guarantees about  the  use
  206.        misuse,  or  suitability of SST on a particular  computer.
  207.        It  is  the  users duty to take  adequate  precautions  to
  208.        prevent  and recover from any accidental data loss because
  209.        of power failure or any other cause.
  210.  
  211.        
  212.  
  213.  
  214.